#include<iostream>
using namespace std;
typedef long long LL;
LL n;
int main()
{
	cin >> n;
	LL ans1 = (1 + n) * n / 2;
	LL ans2 = ans1 / n;
	cout << ans1 << endl; 
	cout << ans2 << endl;
	return 0;
}